package vn.fpt.fsoft.autotest.userDAO;

import vn.fpt.fsoft.dao.UserDAO;
import vn.fpt.fsoft.autotest.database.DBWithNoRow;
import vn.fpt.fsoft.autotest.database.UserDBWithOneRows;
import static org.junit.Assert.*;


import org.junit.Test;

public class ListAllUser {
 
    @Test
    public void testCase1() {
        DBWithNoRow.CreateData();
        UserDAO dao = new UserDAO();
        
        assertEquals(0, dao.getAllUser().size());
    }
    
    @Test
    public void testCase2() {
        UserDBWithOneRows.CreateData();
        UserDAO dao = new UserDAO();

        assertEquals(1, dao.getAllUser().size());
    }
    
    
}
